<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
<h:head>
<link href="/css/sri.css" rel="stylesheet" type="text/css"/>
	
</h:head>

<body>
<h:form id="frmMantenerCatalogo">
 <h:graphicImage value="/img/logoMinisterio.png" style="align-left"></h:graphicImage>
<rich:panel>
  	<f:facet name="header">
		            <h:outputText value="#{modificarCatalogoController.tituloModal}" />
		        </f:facet>
  	<h:panelGrid columns="2">
  		<h:outputLabel value="Código" />
  		<h:outputLabel value="#{modificarCatalogoController.catalogoSeleccionado.codigonegocio}" />
  		
  		<h:outputLabel value="Descripción" />
  		<h:inputText value="#{modificarCatalogoController.catalogoSeleccionado.descripcion}" id="descripcion" required="true" requiredMessage="La descripción es obligatoria" >
  			 <f:validateLength minimum="3" maximum="200"  />
  			 
  		</h:inputText>
  		
  	</h:panelGrid>

  	<h:panelGrid columns="2">
  		<h:commandLink action="#{modificarCatalogoController.guardar()}" >
  			<h:graphicImage value="/img/Grabar.png"></h:graphicImage>
  			<h:outputLabel value="Grabar" />
  		</h:commandLink>
  		<h:commandLink action="#{modificarCatalogoController.cancelar()}" immediate="true" >
  			<h:graphicImage value="/img/Cancelar.png"></h:graphicImage>
  			<h:outputLabel value="Cancelar" />
  		</h:commandLink>
  	</h:panelGrid>
  	</rich:panel>
</h:form>
  	
</body> 
</html>
